package com.smalltao.sso.entity;

import com.smalltao.core.base.entity.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * @author smallTao.liu
 * @version V1.0
 * @description 角色关联菜单
 * @date 2018/11/19 11:27
 */
@Entity
public class RoleMenu extends BaseEntity {

    private static final long serialVersionUID = -676262723424951315L;

    private String uid;

    private String roleUid;

    private String menuUid;
    @Id
    @GenericGenerator(name = "generator", strategy = "uuid")
    @GeneratedValue(generator = "generator")
    @Column(length = 32)

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getRoleUid() {
        return roleUid;
    }

    public void setRoleUid(String roleUid) {
        this.roleUid = roleUid;
    }

    public String getMenuUid() {
        return menuUid;
    }

    public void setMenuUid(String menuUid) {
        this.menuUid = menuUid;
    }
}